<?php 
global $_W,$_GPC;
include MODULE_ROOT.'/inc/mobile/__init.php';

$id = intval($_GPC['id']);
$sql = "SELECT * FROM ".tablename('imeepos_runner3_recive')." WHERE id = :id";
$params = array(':id'=>$id);
$recive = pdo_fetch($sql,$params);

//tasks

$sql = "SELECT * FROM ".tablename('imeepos_runner3_tasks')." WHERE id = :id";
$params = array(':id'=>$recive['taskid']);
$task = pdo_fetch($sql,$params);


//user
$sql = "SELECT * FROM ".tablename('imeepos_runner3_member')." WHERE uniacid = :uniacid AND openid = :openid";
$params = array(':uniacid'=>$_W['uniacid'],':openid'=>$task['openid']);
$user = pdo_fetch($sql,$params);

$_pjax = trim($_GPC['_pjax']);

$template_content = $template.'/task/recive';

if($_W['isajax']){
	include $this->template($template_content,TEMPLATE_FETCH);
}else{
	include $this->template($template.'/index');
}